package com.zzxy.spring.controller;
import com.zzxy.spring.service.IStudentService;
import com.zzxy.spring.service.impl.StudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class StudentController {
    @Autowired
    private static IStudentService studentService;

/* public IStudentService getStudentService() {
return studentService;
}

public void setStudentService(StudentServiceImpl studentService) {
this.studentService = studentService;
}*/

    public static void addStudent(String username, String passward){
//1.service
        studentService.addStudent(username,passward);
    }
}
